<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Manage contacts - Magneto, by Protoweb</title>

  {include file="head-common.html"}

</head>

<body>

  {include file="header.html"}

  <div class="main container">

    <h1 class="over-bg antialias-white">Manage contacts</h1>

    {include file="messages_managment.html"}

    <div class="row">

      <form action="" method="post" enctype="multipart/form-data">
        <input name="id" type="hidden" value="{$recipient->id}" />

        <fieldset class="span6">

          <div class="control-group">
            <label for="email">Email:</label>
            <input name="email" value="{$recipient->email}" type="email" required="required">
          </div>

          <div class="control-group">
            <label for="firstname">Firstname:</label>
            <input name="firstname" value="{$recipient->firstname}" type="text">
          </div>

          <div class="control-group">
            <label for="lastname">Lastname:</label>
            <input name="lastname" value="{$recipient->lastname}" type="text">
          </div>
            
          <div class="control-group">
            <label for="nickname">Nickname:</label>
            <input name="nickname" value="{$recipient->nickname}" type="text">
          </div>
                      
        </fieldset>
        <!-- column -->
      
        <fieldset class="span6">

          <div class="control-group">
            <label for="created">Created:</label>
            <input name="created" value="{$recipient->created}" type="datetime" readonly="readonly">
          </div>

          <!-- <div class="control-group">
            <label for="verified">verified :</label>
            {html_options name="verified" options=[1=>Yes,0=>No] selected=$recipient->verified}
          </div> -->
                              
          <!-- <div class="control-group">
            <label for="sents">Sents counter :</label>
            <input name="sents" value="{$recipient->sents}" type="text" readonly="readonly">
          </div>
                      
          <div class="control-group">
            <label for="bounceds">Bounceds counter :</label>
            <input name="bounceds" value="{$recipient->bounceds}" type="text" readonly="readonly">
          </div> -->
          

          <div class="control-group">
            <label for="offreason">Status:</label>
            {html_options name="offreason" options=$offreasons selected=$recipient->offreason}
          </div>

          {if $recipient->offreason}        
          <div class="control-group">
            <label for="offdate">Off Date:</label>
            <input name="offdate" value="{$recipient->offdate}" type="datetime" readonly="readonly">
          </div>
          {/if}

          <div class="control-group">
            <button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> Save</button>
          </div>

        </fieldset>
        <!-- column -->

      </form>

    </div>
    <!-- principal row -->

  </div>
  <!-- main container -->

  {include file="footer.html"}

</body>
</html>
